-
Notifications
You must be signed in to change notification settings - Fork 9
Fix #438, add three PDI deactivation option through CMake #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Warning you're updating the tutorial. This is unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR is almost ready for merge. Just a few changes are needed.
The tutorial previously used broke the CI. |
Changing back to tutorial @ 7334107. |
…anual merge using sed 6
…anual merge using sed 7
…anual merge using sed 8
…anual merge using sed 9
…anual merge using sed 10
…anual merge using sed and tar
…anual merge using sed and tar 2
…anual merge using sed and tar 3
…anual merge using sed and tar 4
…anual merge using sed and tar 5
…anual merge using sed and tar 6
…anual merge using sed and tar 7
…anual merge using sed and tar 8
…anual merge using sed and tar 9
…anual merge using sed and tar 10
…anual merge using sed and tar 11
…anual merge using sed and tar 12
…anual merge using sed and tar 13
…anual merge using sed and tar 14
…anual merge using sed and tar 15
…anual merge using sed and tar 16
…anual merge using sed and tar 17
…nable multiple ctest junit output files for the CI, without merge
|
ubuntu/focal does not produce junit reports, most likely since the fix of the tmpfs/tests.xml. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, this is converging!
| cmake -DDIST_PROFILE=Devel ${CMAKE_FLAGS} "${SRCDIR}" | ||
| make ${MAKEFLAGS} | ||
| ctest --output-on-failure --timeout 90 ${CTEST_FLAGS} ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} | ||
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_pdi.xml ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do not remove ${CTEST_FLAGS} other users of the script might use it.
I am also not convinced about the fixed path for junit output.
Maybe:
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_pdi.xml ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} | |
| ctest --output-on-failure --timeout 90 ${CTEST_FLAGS} ${JUNIT_OUTPUT_DIR:+--output-junit ${JUNIT_OUTPUT_DIR}/tests_pdi.xml} ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} |
| cd "${TEST_DIR_NO_PDI}" | ||
| cmake -DCMAKE_PREFIX_PATH="${SRCDIR}/no-pdi" "${SRCDIR}/example" | ||
| make ${MAKEFLAGS} | ||
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_no-pdi_example.xml -R PDI_example_trace_C |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_no-pdi_example.xml -R PDI_example_trace_C | |
| ctest --output-on-failure --timeout 90 ${CTEST_FLAGS} ${JUNIT_OUTPUT_DIR:+--output-junit ${JUNIT_OUTPUT_DIR}/tests_no-pdi_example.xml} ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} |
| cd "${TEST_DIR_NO_PDI}" | ||
| cmake -DCMAKE_PREFIX_PATH="${SRCDIR}/no-pdi" "${SRCDIR}/example" | ||
| make ${MAKEFLAGS} | ||
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_no-pdi_example.xml -R PDI_example_trace_C |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why only run PDI_example_trace_C?
| ctest --output-on-failure --timeout 90 ${CTEST_FLAGS} ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} | ||
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_pdi.xml ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} | ||
|
|
||
| # Configure, build & test for pdi's example with CMAKE_PREFIX_PATH (find_package) for no-pdi, only with Paraconf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # Configure, build & test for pdi's example with CMAKE_PREFIX_PATH (find_package) for no-pdi, only with Paraconf | |
| # Configure, build & test for pdi's example with CMAKE_PREFIX_PATH (find_package) for no-pdi, only if Paraconf is available |
| cd "${TEST_DIR_API}" | ||
| cmake -DCMAKE_PREFIX_PATH="${SRCDIR}/no-pdi" "${SRCDIR}/test_api" | ||
| make ${MAKEFLAGS} | ||
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_no-pdi_api.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ctest --output-on-failure --timeout 90 --output-junit /tmp/tests_no-pdi_api.xml | |
| ctest --output-on-failure --timeout 90 ${CTEST_FLAGS} ${JUNIT_OUTPUT_DIR:+--output-junit ${JUNIT_OUTPUT_DIR}/tests_no-pdi_api.xml} ${EXCLUDED_PDI_TESTS:+-E $EXCLUDED_PDI_TESTS} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's a changelog, there should also be a AUTHORS file
|
|
||
| ## [x.x.x] - xxxx-xx-xx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## [x.x.x] - xxxx-xx-xx |
| find_package(PDI REQUIRED COMPONENTS C) | ||
|
|
||
| add_executable(test_api_C test_api.c) | ||
| if(paraconf_FOUND) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if(paraconf_FOUND) | |
| if("${paraconf_FOUND}") |
| add_test(NAME test_api_C COMMAND "$<TARGET_FILE:test_api_C>") | ||
|
|
||
| add_executable(test_api_CXX test_api.cpp) | ||
| if(paraconf_FOUND) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if(paraconf_FOUND) | |
| if("${paraconf_FOUND}") |
| include(CTest) | ||
|
|
||
| # PDI | ||
| find_package(paraconf COMPONENTS C) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it used Directly?
If yes, it should be REQUIRED and the target should be added as dependency
If no, this line can be removed
Missing the case where paraconf is missing.
List of things to check before making a PR
Before merging your code, please check the following:
.clang-format;Fix #issuekeyword to autoclose the issue when merged.